<!doctype html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>READ_YOUR_WORK</title>
	<link rel="icon" href="../image/icon.png"/>
	<style type="text/css">
		#readMain{
			background-color: #ffffdd;
			padding-top: 20px;
			width: 800px;
			height: 800px;
			margin-left: 17%;
			border-radius: 2em;
		}

		#readContent {
			background-color: #fab3b9;
			width: 700px;
			height: 650px;
			padding: 20px 0 20px 20px;
			margin: 20px 0 50px 30px;
			border-radius: 2em;
		}
	</style>
</head>

<body>
	<div id="readMain">
		<div id="readContent">
			<h2>日志</h2>
			<form method="post" action="../index.php">
				<input type="submit" value="返回日历" name="submit" />
			</form>
			<?php
				error_reporting(0);
				$d_value = $_POST['search'];
				echo "<p>日期：$d_value</p>";
				$myfile = fopen($d_value, "r+") or die("Unable to open file!");
				$info = fread($myfile,filesize($d_value));
				echo "<p>$info</p>";
				fclose($myfile);
			?>		
		</div>
	</div>
</body>
</html>